<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('医生、护士、照护师列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>手机号码：</label>
                                <input type="text" name="phone"/>
                            </li>
                            <li>
                                <label>微信小程序唯一Id：</label>
                                <input type="text" name="openid"/>
                            </li>
                            <li>
                                <label>姓名：</label>
                                <input type="text" name="name"/>
                            </li>
                            <li>
                                <label>性别 0:女, 1:男：</label>
                                <input type="text" name="gender"/>
                            </li>
                            <li>
                                <label>生日：</label>
                                <input type="text" name="birthday"/>
                            </li>
                            <li>
                                <label>身份证号码：</label>
                                <input type="text" name="cid"/>
                            </li>
                            <li>
                                <label>户籍省：</label>
                                <input type="text" name="nativeProvince"/>
                            </li>
                            <li>
                                <label>户籍市：</label>
                                <input type="text" name="nativeCity"/>
                            </li>
                            <li>
                                <label>户籍区：</label>
                                <input type="text" name="nativeRegion"/>
                            </li>
                            <li>
                                <label>户籍街道：</label>
                                <input type="text" name="nativeStreet"/>
                            </li>
                            <li>
                                <label>居住省：</label>
                                <input type="text" name="liveProvince"/>
                            </li>
                            <li>
                                <label>居住市：</label>
                                <input type="text" name="liveCity"/>
                            </li>
                            <li>
                                <label>居住区：</label>
                                <input type="text" name="liveRegion"/>
                            </li>
                            <li>
                                <label>居住街道：</label>
                                <input type="text" name="liveStreet"/>
                            </li>
                            <li>
                                <label>角色 doctor:医生,nurse:护士,carer:照护师：</label>
                                <select name="roleType">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>密码：</label>
                                <input type="text" name="PASSWORD"/>
                            </li>
                            <li>
                                <label>擅长：</label>
                                <input type="text" name="goodAt"/>
                            </li>
                            <li>
                                <label>身份证正面照：</label>
                                <input type="text" name="cardFront"/>
                            </li>
                            <li>
                                <label>身份证反面照：</label>
                                <input type="text" name="cardBack"/>
                            </li>
                            <li>
                                <label>头像：</label>
                                <input type="text" name="avatar"/>
                            </li>
                            <li>
                                <label>职称：</label>
                                <input type="text" name="title"/>
                            </li>
                            <li>
                                <label>资格证书：</label>
                                <input type="text" name="qualificationCer"/>
                            </li>
                            <li>
                                <label>执业证书：</label>
                                <input type="text" name="practiceCer"/>
                            </li>
                            <li>
                                <label>职称证书：</label>
                                <input type="text" name="titleCer"/>
                            </li>
                            <li>
                                <label>医院：</label>
                                <input type="text" name="hospital"/>
                            </li>
                            <li>
                                <label>科室：</label>
                                <input type="text" name="department"/>
                            </li>
                            <li>
                                <label>是否实名认证 0:未认证 1:认证：</label>
                                <select name="realnameStatus">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>审核消息：</label>
                                <input type="text" name="checkMessage"/>
                            </li>
                            <li>
                                <label>状态标志位 0:未认证 1:已认证 2:认证失败：</label>
                                <select name="status">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li class="select-time">
                                <label>创建时间：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateDatetime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreateDatetime]"/>
                            </li>
                            <li class="select-time">
                                <label>提交审核时间：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginSubmitDatetime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endSubmitDatetime]"/>
                            </li>
                            <li class="select-time">
                                <label>审核时间：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCheckDatetime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCheckDatetime]"/>
                            </li>
                            <li>
                                <label>星级：</label>
                                <input type="text" name="star"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="wxapi:nurse:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="wxapi:nurse:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="wxapi:nurse:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="wxapi:nurse:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('wxapi:nurse:edit')}]];
        var removeFlag = [[${@permission.hasPermi('wxapi:nurse:remove')}]];
        var prefix = ctx + "wxapi/nurse";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "医生、护士、照护师",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '系统id',
                    visible: false
                },
                {
                    field: 'phone',
                    title: '手机号码'
                },
                {
                    field: 'openid',
                    title: '微信小程序唯一Id'
                },
                {
                    field: 'name',
                    title: '姓名'
                },
                {
                    field: 'gender',
                    title: '性别 0:女, 1:男'
                },
                {
                    field: 'birthday',
                    title: '生日'
                },
                {
                    field: 'cid',
                    title: '身份证号码'
                },
                {
                    field: 'nativeProvince',
                    title: '户籍省'
                },
                {
                    field: 'nativeCity',
                    title: '户籍市'
                },
                {
                    field: 'nativeRegion',
                    title: '户籍区'
                },
                {
                    field: 'nativeStreet',
                    title: '户籍街道'
                },
                {
                    field: 'liveProvince',
                    title: '居住省'
                },
                {
                    field: 'liveCity',
                    title: '居住市'
                },
                {
                    field: 'liveRegion',
                    title: '居住区'
                },
                {
                    field: 'liveStreet',
                    title: '居住街道'
                },
                {
                    field: 'roleType',
                    title: '角色 doctor:医生,nurse:护士,carer:照护师'
                },
                {
                    field: 'PASSWORD',
                    title: '密码'
                },
                {
                    field: 'goodAt',
                    title: '擅长'
                },
                {
                    field: 'cardFront',
                    title: '身份证正面照'
                },
                {
                    field: 'cardBack',
                    title: '身份证反面照'
                },
                {
                    field: 'avatar',
                    title: '头像'
                },
                {
                    field: 'title',
                    title: '职称'
                },
                {
                    field: 'qualificationCer',
                    title: '资格证书'
                },
                {
                    field: 'practiceCer',
                    title: '执业证书'
                },
                {
                    field: 'titleCer',
                    title: '职称证书'
                },
                {
                    field: 'hospital',
                    title: '医院'
                },
                {
                    field: 'department',
                    title: '科室'
                },
                {
                    field: 'realnameStatus',
                    title: '是否实名认证 0:未认证 1:认证'
                },
                {
                    field: 'checkMessage',
                    title: '审核消息'
                },
                {
                    field: 'status',
                    title: '状态标志位 0:未认证 1:已认证 2:认证失败'
                },
                {
                    field: 'createDatetime',
                    title: '创建时间'
                },
                {
                    field: 'submitDatetime',
                    title: '提交审核时间'
                },
                {
                    field: 'checkDatetime',
                    title: '审核时间'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                {
                    field: 'star',
                    title: '星级'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>